/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package www.enumerators;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *
 * @author Develop3D
 */
public enum Ports {
    
    COM1(1,"COM1"),
    COM2(2,"COM2"),
    COM3(3,"COM3"),
    COM4(4,"COM4"),
    COM5(5,"COM5"),
    COM6(6,"COM6"),
    COM7(7,"COM7"),
    COM8(8,"COM8"),
    COM9(9,"COM9"),
    COM10(10,"COM10"),
    COM11(11,"COM11"),
    COM12(12,"COM12"),
    ;
    
    int key;
    String value;
    
    Ports(int key, String value){
        this.key = key;
        this.value = value;
    }
    
    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
        
    public List<String> catchAllValues(){
        List<String> lstStr = new ArrayList<String>();
        lstStr.addAll(Arrays.asList( this.COM1.value, this.COM2.value, this.COM3.value, this.COM4.value, this.COM5.value, this.COM6.value, this.COM7.value, this.COM8.value, this.COM9.value, this.COM10.value, this.COM11.value, this.COM12.value ));
        return lstStr;
    }
    
}
